home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Files / DirectoryID.h < prev    next >
Text File  |  1997-06-28  |  594b  |  32 lines

  1. // DirectoryID.h
  2.  
  3. #ifndef DirectoryID_h
  4. #define DirectoryID_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class DirectoryID
  11.   {
  12.     private:
  13.         int32 id;
  14.     
  15.         DirectoryID( int32 value )
  16.           : id( value )
  17.           {}
  18.         
  19.     public:
  20.         static DirectoryID Make( int32 value )        { return value; }
  21.         
  22.         static DirectoryID Root()                        { return fsRtDirID; }
  23.         static DirectoryID AboveRoot()                { return fsRtParID; }
  24.         
  25.         int32 Number() const                                { return id; }
  26.         
  27.         bool operator==( DirectoryID f ) const        { return id == f.id; }
  28.         bool operator!=( DirectoryID f ) const        { return id != f.id; }
  29.   };
  30.  
  31. #endif
  32.